package com.itheima.mybackstudy.studyneibulei;

public class Outer1 {
    String name="tom";
    public void method(){
        int age=100;
        System.out.println(age);
        System.out.println("嘿嘿嘿，这是普通方法");
    }
    int b=20;
    public void say(){
        int a=10;
String sex="nan";
        class Inner{
int aa=10;

            public void show(){
                System.out.println(b);
                System.out.println("嘿嘿嘿，这是第二个");
            }
        }


        Inner inner=new Inner();
        inner.show();
        System.out.println(inner.aa);
        System.out.println(b);
        System.out.println(sex);

    }
}
